<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp"%>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%>

<portlet:actionURL var="insertSubjectByFacultyURL">
	<portlet:param name="action" value="insertSubjectByFaculty" />
</portlet:actionURL>

<aui:form action="${insertSubjectByFacultyURL}" method="post" name="fm">
	<aui:input type="text" name="nameSubject" label="Tên môn học">
		<aui:validator name="required" errorMessage="Tên môn học không được để trống"></aui:validator>
	</aui:input>
	<aui:input max="10" min="1" type="number" name="numberOfCredit"
		label="Số chỉ"></aui:input>
	<aui:select name="idFaculty">
		<c:forEach items="${listFaculty}" var="f">
			<aui:option value="${f.idFaculty}">
				${f.nameFaculty}</aui:option>
		</c:forEach>
	</aui:select>
	<aui:input name="" type="submit" value="Save"></aui:input>
	<a href='<portlet:renderURL/>'>&laquo;Back</a>
</aui:form>